function install_soft(){
apt list --installed | grep $1
if [[ $? -eq 1 ]]
then
	echo y | sudo apt-get install $1
fi
}

install_soft pandoc
install_soft pandoc-citeproc
install_soft texlive-luatex
install_soft texlive-xetex
install_soft texlive-lang-chinese
install_soft haskell-platform
